<%@ page pageEncoding="utf-8"%>
<%@page import="java.util.*,edu.pet.entity.*" %>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="allpage.css" >
    <title>宠物诊所</title>
  </head>
  <script type="text/javascript" src="../user/table_style.js"></script>
  <%
  	ArrayList<Vet> vets = new ArrayList<Vet>();
  	vets = (ArrayList<Vet>)session.getAttribute("vets");
  	Iterator<Vet> itor = vets.iterator();
  %>
  
  <body>
  <div class="background">
  <jsp:include page="suc.jsp"></jsp:include>
  	<div class="contentDiv">
	  	<table width="400px" align="center">
	  		<tr>
	  			<td width="30%">兽医名称</td>
	  			<td>专业</td>
	  		</tr>
	  		<%
	  				Vet one;
	  			while(itor.hasNext()){
					one = itor.next();
					%>
					<tr>
						<td><%=one.getName() %></td>
						<td><%=one.getSpecialties() %></td>
					</tr>			
					<%
	  			}
	  		%>
	  		<tr>
	  			<td colspan = '2' align = "2">
		  			<input type="button" value="重新查询" onclick="javascript:window.location='doctorsearch.jsp'"/>
	  			</td>
	  		</tr>
	  	</table>
	</div>	  	
  </div>
  </body>
</html>
